<jsp:include page="/views/includes/header.jsp" />

<jsp:useBean id="groupes" type="java.util.HashSet<Models.Groupe>" scope="request" />
<jsp:useBean id="modules" type="java.util.HashSet<Models.Module>" scope="request" />

	<h1>Ajouter une note</h1>
	<form method="POST" action="<%= this.getServletContext().getContextPath() %>/notes/add">
		<div>
			<label for="group">Groupe :</label>
			<select name="group" id="group">
			<% for(Models.Groupe g : groupes) { %>
				<option value="<%= g.getId_groupe() %>"><%= g.getNom() %></option>
			<% } %>
			</select>
		</div>
		<div>
			<label for="module">Module :</label>
			<select name="module" id="group">
			<% for(Models.Module m : modules) { %>
				<option value="<%= m.getId_module() %>"><%= m.getNom() %></option>
			<% } %>
			</select>
		</div>
		
		<div>
			<input type="submit" value="Valider" />
		</div>
	</form>
<jsp:include page="/views/includes/footer.jsp" />